se ) ) { if ( 200 !== wp_remote_retrieve_response_code( $response ) ) { $support_errors->add( 'bad_response_code', wp_remote_retrieve_response_message( $response ) ); } elseif ( false === wp_is_local_html_output( wp_remote_retrieve_body( $response ) ) ) { $support_errors->add( 'bad_response_source', __( 'It looks like the response did not come from this site.' ) ); } } return $support_errors->errors; } /** * Checks whether a given HTML string is likely an output from this WordPress site. * * This function attempts to check for various common WordPress patterns whether they are included in the HTML string. * Since any of these actions may be disabled through third-party code, this function may also return null to indicate * that it was not possible to determine ownership. * * @since 5.7.0 * @access private * * @param string $html Full HTML output string, e.g. from a HTTP response. * @return bool|null True/false for whether HTML was generated by this site, null if unable to determine. */ function wp_is_local_html_output( $html ) { // 1. Check if HTML includes the site's Really Simple Discovery link. if ( has_action( 'wp_head', 'rsd_link' ) ) { $pattern = preg_replace( '#^https?:(?=//)#', '', esc_url( site_url( 'xmlrpc.php?rsd', 'rpc' ) ) ); // See rsd_link(). return str_contains( $html, $pattern ); } // 2. Check if HTML includes the site's REST API link. if ( has_action( 'wp_head', 'rest_output_link_wp_head' ) ) { // Try both HTTPS and HTTP since the URL depends on context. $pattern = preg_replace( '#^https?:(?=//)#', '', esc_url( get_rest_url() ) ); // See rest_output_link_wp_head(). return str_contains( $html, $pattern ); } // Otherwise the result cannot be determined. return null; } Page non trouvĂ©e – Le Moulin
Fatal error: Uncaught Error: Call to undefined function wp_is_using_https() in /htdocs/gite-lemoulin.fr/wp-includes/https-migration.php:21 Stack trace: #0 /htdocs/gite-lemoulin.fr/wp-includes/https-migration.php(52): wp_should_replace_insecure_home_url() #1 /htdocs/gite-lemoulin.fr/wp-includes/class-wp-hook.php(326): wp_replace_insecure_home_url('') #2 /htdocs/gite-lemoulin.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array) #3 /htdocs/gite-lemoulin.fr/wp-includes/theme.php(2050): apply_filters('wp_get_custom_c...', '', 'aravalli') #4 /htdocs/gite-lemoulin.fr/wp-includes/theme.php(1957): wp_get_custom_css() #5 /htdocs/gite-lemoulin.fr/wp-includes/class-wp-hook.php(324): wp_custom_css_cb('') #6 /htdocs/gite-lemoulin.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /htdocs/gite-lemoulin.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /htdocs/gite-lemoulin.fr/wp-includes/general-template.php(3192): do_action('wp_head') #9 /htdocs/gite-lemoulin.fr/wp-content/themes/aravalli/header.php(11): wp_head() #10 /htdocs/gite-lemoulin.fr/wp-includes/template.php(810): require_once('/htdocs/gite-le...') #11 /htdocs/gite-lemoulin.fr/wp-includes/template.php(745): load_template('/htdocs/gite-le...', true, Array) #12 /htdocs/gite-lemoulin.fr/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #13 /htdocs/gite-lemoulin.fr/wp-content/themes/aravalli/404.php(10): get_header() #14 /htdocs/gite-lemoulin.fr/wp-includes/template-loader.php(106): include('/htdocs/gite-le...') #15 /htdocs/gite-lemoulin.fr/wp-blog-header.php(19): require_once('/htdocs/gite-le...') #16 /htdocs/gite-lemoulin.fr/index.php(17): require('/htdocs/gite-le...') #17 {main} thrown in /htdocs/gite-lemoulin.fr/wp-includes/https-migration.php on line 21